import { handleActions } from 'redux-actions'
import { search_product_success } from '../actions/search'

const initalState = {
	result: []
}

const searchReducer = handleActions({
	[search_product_success]: (state, action) => ({
		result: action.payload.result
	})

},initalState)

export default searchReducer